# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-vine
pkgver=5.1.0
pkgrel=0
pkgdesc="futures and promises implementation for python"
url="https://github.com/celery/vine"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
checkdepends="py3-pytest py3-case py3-nose"
subpackages="$pkgname-pyc"
source="
	https://files.pythonhosted.org/packages/source/v/vine/vine-$pkgver.tar.gz
	105_tests-replace-deprecated-setup-method.patch
	"
builddir="$srcdir/vine-$pkgver"

replaces="py-vine" # Backwards compatibility
provides="py-vine=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 -m pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
899a494d26ce8236ba12451e8da42fad03803df0a9cf69829f650c23c0d4f6232b9246230fd984fa6616edbad8b2c08f0efe95e3692bee756dfc094f14e3432d  vine-5.1.0.tar.gz
6a70026e9f4cc8a6b49e9322fad143d378cbc9c09763e1c742fbf93e83b3451b9ad436e5ddc4b392b4f9cb5b266e173d64a1471a98245088dac9c0002b53710e  105_tests-replace-deprecated-setup-method.patch
"
